Skip to content

Conversation

DanielSchiavini
Copy link
Collaborator

@DanielSchiavini DanielSchiavini commented Oct 7, 2025

  • convert the pool parameters to action info components in beta mode
  • align contract elements to the center of the line

Copy link

vercel bot commented Oct 7, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
curve-dapp Ready Ready Preview Comment Oct 7, 2025 2:36pm
curve-dapp-storybook Ready Ready Preview Comment Oct 7, 2025 2:36pm
1 Skipped Deployment
Project Deployment Preview Comments Updated (UTC)
curve-router-api Skipped Skipped Oct 7, 2025 2:36pm

Copy link
Collaborator

@0xAlunara 0xAlunara left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking good. Although not sure if we should mix - with N/A?
image

@DanielSchiavini
Copy link
Collaborator Author

Looking good. Although not sure if we should mix - with N/A? image

I did not change this, so I'll merge it as-is.
Old code:

<Item>
{t`Total LP Tokens staked:`}{' '}
<strong>
{typeof staked?.gaugeTotalSupply === 'string'
? staked.gaugeTotalSupply
: formatNumber(staked?.gaugeTotalSupply ? weiToEther(Number(staked.gaugeTotalSupply)) : undefined, {
notation: 'compact',
defaultValue: '-',
})}
</strong>
</Item>
<Item>
{t`Staked percent`}:{' '}
<strong>
{typeof staked?.totalStakedPercent === 'string'
? staked.totalStakedPercent
: formatNumber(staked?.totalStakedPercent, { style: 'percent', defaultValue: '-' })}
</strong>
</Item>

New code:

<ActionInfo
label={t`Total LP Tokens staked:`}
value={
staked?.gaugeTotalSupply === 'string'
? staked.gaugeTotalSupply
: formatNumber(staked?.gaugeTotalSupply && weiToEther(+staked.gaugeTotalSupply), {
notation: 'compact',
defaultValue: '-',
})
}
/>
<ActionInfo
label={t`Staked percent`}
value={
typeof staked?.totalStakedPercent === 'string'
? staked.totalStakedPercent
: formatNumber(staked?.totalStakedPercent, { style: 'percent', defaultValue: '-' })
}
/>

@DanielSchiavini DanielSchiavini merged commit 680f17e into main Oct 8, 2025
17 checks passed
@DanielSchiavini DanielSchiavini deleted the feat/action-info branch October 8, 2025 12:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants